<#import "/layout/common.html" as com>
<#escape x as x?html>

<#assign header><a href="/man/games">Quản lý Game</a></#assign>

<#assign pageCss>
.a{border-bottom:1px dashed #666666;margin-left:20px;margin-bottom:8px;}
.a p{border-top:1px dashed #666666;padding-top:8px;margin:8px 0 4px 0;}
.a img{width:40px;height:30px;}
b.sel{background:transparent url(${com.baseUrl!?html}files/img/game.gif) left center no-repeat; padding-left:20px;}
a.n{font-weight:bold;}
.fields{width:100%;}
textarea{font-family:Arial;font-size:small;}
.fields .text{width:100%;}
td.l{vertical-align:top;white-space:nowrap;width:90px;text-align:right;} 
td{font-size:12px;}
</#assign>

<@com.page title="Java Mobile Game" css=pageCss header=header>

<form method="post" action="/man/game">
<table class="fields">
<tr><td class="l"><label for="code">Code</label></td><td><input type="text" class="text" id="code" name="code" value="<#if game?has_content>${game.code}</#if>"/></td></tr>
<tr><td class="l"><label for="title">Title</label></td><td><input type="text" class="text" id="title" name="title" value="<#if game?has_content>${game.title}</#if>"/></td></tr>
<tr><td class="l"><label for="size">File size</label></td><td><input type="text" class="text" id="size" name="size" value="<#if game?has_content>${game.size?c}</#if>"/></td></tr>
<tr><td class="l"><label for="jar">Jar URL</label></td><td><input type="text" class="text" id="jar" name="jar" value="<#if game?has_content>${game.jar}</#if>"/></td></tr>
<tr><td class="l"><label for="jad">Jad URL</label></td><td><input type="text" class="text" id="jad" name="jad" value="<#if game?has_content>${game.jad}</#if>"/></td></tr>
<tr><td class="l"><label for="img">Image URL</label></td><td><input type="text" class="text" id="img" name="img" value="<#if game?has_content>${game.img}</#if>"/></td></tr>
<tr><td class="l"><label for="intro">Intro</label></td><td><textarea rows="3" class="text" id="intro" name="intro"><#if game?has_content>${game.intro.value}</#if></textarea></td></tr>
<tr><td class="l"><label for="content">Content</label></td><td><textarea rows="20" class="text" id="content" name="content"><#if game?has_content>${game.content.value}</#if></textarea></td></tr>
<tr><td></td><td><input type="submit" value="Save"/> <a href="/man/games">Back</a></td></tr>
</table>
</form>


</@com.page>

</#escape>